<?php echo View::make('admin.common.header'); ?>

<div id="header">
    <?php echo View::make('admin.common.left')->with('is_dashboard', true);?>
    <div class="fr1">
        
        <div class="main-content">
	
            <div class="box-positon">
                    <div class="rpos">当前位置: 内容管理 - 视频管理</div>
                    <div class="clear"></div>
            </div>

            <div class="body-box" id="list">

              <table class="footable">
                  <thead>
                    <tr>
                      <th data-class="expand">
                        <span title="">视频标题</span>
                      </th>
                      <th>
                        <span title="">视频分类</span>
                      </th>
                      <th>
                        <span title="">视频时长</span>
                      </th>
                      <th>
                        视频图片
                      </th>
                      <th data-type="numeric">
                        视频类型
                      </th>
                      <th data-type="numeric">
                        视频价格
                      </th>
                      <th data-type="numeric">
                        观看次数
                      </th>
                      <th data-type="numeric">
                        排序
                      </th>
                      <th data-type="numeric">
                        状态
                      </th>
                      <th data-type="string" data-hide="default">
                        视频描述
                      </th>
                      <th data-type="string">
                        视频标签
                      </th>
                      <th data-type="numeric">
                        评论时间
                      </th>
                      <th>
                        操作选项
                      </th>
                    </tr>
                  </thead>
                    <tbody>
                                    <?php foreach($video_list->results as $key => $value) {?>
                            <tr>
                                    <td><?php echo $value->title?></td>
									
                                    <td><?php echo $value->name?></td>
                                    <td><?php echo $value->duration?></td>
                                    <td><?php echo $value->image?></td>
                                    <td><?php echo $value->type?></td>
                                    <td><?php echo $value->price?></td>
                                    <td><?php echo $value->viewed?></td>
                                    <td>
                                        <a href="#" title="上移"><img src="/admin/img/up.gif" border="0"></a>
                                        <a href="#" title="下移"><img src="/admin/img/down.gif" border="0"></a>
                                    </td>
                                    <td><?php echo $value->status?></td>
                                    <td>关于司法考试</td>
                                    <td>培训</td>
                                    <td><?php echo $value->ctime?></td>
                                    <td align="center">
                                            <span class="small">
                                                <a href="/admin/video/manage?id=<?php echo $value->id ?>" class="ed" title="编辑"><img alt="编辑" src="/admin/img/edit.gif"></a>
                                                &nbsp;
                                                <a href="/admin/video/del?id=<?php echo $value->id ?>" class="del" title="删除"><img alt="删除" src="/admin/img/cross.gif"></a>
                                            </span>	
					</td>
                            </tr>
                            
				<?php }?>
                    </tbody>
                </table>
	
                <?php  echo View::make('admin.common.pager'); ?>
            
    </div>
        
    </div>    
</div>

<?php echo View::make('admin.common.footer'); ?>
<script type="text/javascript">
    $(function(){
       $(".footable").footable(); 
    });    
</script> 
